tag | line | file | source code |
MSDOS_SB | 25 | fs/msdos/fat.c | if ((unsigned) (nr-2) >= MSDOS_SB(sb)->clusters) return 0; |
MSDOS_SB | 26 | fs/msdos/fat.c | if (MSDOS_SB(sb)->fat_bits == 16) first = last = nr*2; |
MSDOS_SB | 31 | fs/msdos/fat.c | if (!(bh = msdos_sread(sb->s_dev,MSDOS_SB(sb)->fat_start+(first >> |
MSDOS_SB | 41 | fs/msdos/fat.c | if (!(bh2 = msdos_sread(sb->s_dev,MSDOS_SB(sb)->fat_start+(last |
MSDOS_SB | 48 | fs/msdos/fat.c | if (MSDOS_SB(sb)->fat_bits == 16) { |
MSDOS_SB | 63 | fs/msdos/fat.c | if (MSDOS_SB(sb)->fat_bits == 16) |
MSDOS_SB | 78 | fs/msdos/fat.c | for (copy = 1; copy < MSDOS_SB(sb)->fats; copy++) { |
MSDOS_SB | 79 | fs/msdos/fat.c | if (!(c_bh = msdos_sread(sb->s_dev,MSDOS_SB(sb)-> |
MSDOS_SB | 80 | fs/msdos/fat.c | fat_start+(first >> SECTOR_BITS)+MSDOS_SB(sb)-> |
MSDOS_SB | 86 | fs/msdos/fat.c | MSDOS_SB(sb)->fat_start+(first >> |
MSDOS_SB | 87 | fs/msdos/fat.c | SECTOR_BITS)+MSDOS_SB(sb)->fat_length*copy |
MSDOS_SB | 243 | fs/msdos/fat.c | sb = MSDOS_SB(inode->i_sb); |
MSDOS_SB | 274 | fs/msdos/fat.c | fat_access(inode->i_sb,last,MSDOS_SB(inode->i_sb)->fat_bits == |
MSDOS_SB | 286 | fs/msdos/fat.c | if (MSDOS_SB(inode->i_sb)->free_clusters != -1) |
MSDOS_SB | 287 | fs/msdos/fat.c | MSDOS_SB(inode->i_sb)->free_clusters++; |
MSDOS_SB | 288 | fs/msdos/fat.c | inode->i_blocks -= MSDOS_SB(inode->i_sb)->cluster_size; |
MSDOS_SB | 219 | fs/msdos/file.c | cluster = SECTOR_SIZE*MSDOS_SB(inode->i_sb)->cluster_size; |
MSDOS_SB | 194 | fs/msdos/inode.c | MSDOS_SB(s)->cluster_size = b->cluster_size*sector_mult; |
MSDOS_SB | 195 | fs/msdos/inode.c | MSDOS_SB(s)->fats = b->fats; |
MSDOS_SB | 196 | fs/msdos/inode.c | MSDOS_SB(s)->fat_start = CF_LE_W(b->reserved)*sector_mult; |
MSDOS_SB | 197 | fs/msdos/inode.c | MSDOS_SB(s)->fat_length = CF_LE_W(b->fat_length)*sector_mult; |
MSDOS_SB | 198 | fs/msdos/inode.c | MSDOS_SB(s)->dir_start = (CF_LE_W(b->reserved)+b->fats*CF_LE_W( |
MSDOS_SB | 200 | fs/msdos/inode.c | MSDOS_SB(s)->dir_entries = CF_LE_W(*((unsigned short *) &b->dir_entries |
MSDOS_SB | 202 | fs/msdos/inode.c | MSDOS_SB(s)->data_start = MSDOS_SB(s)->dir_start+ROUND_TO_MULTIPLE(( |
MSDOS_SB | 203 | fs/msdos/inode.c | MSDOS_SB(s)->dir_entries << MSDOS_DIR_BITS) >> SECTOR_BITS, |
MSDOS_SB | 207 | fs/msdos/inode.c | CF_LE_L(b->total_sect))*sector_mult-MSDOS_SB(s)->data_start; |
MSDOS_SB | 210 | fs/msdos/inode.c | MSDOS_SB(s)->clusters = b->cluster_size ? data_sectors/ |
MSDOS_SB | 212 | fs/msdos/inode.c | MSDOS_SB(s)->fat_bits = fat ? fat : MSDOS_SB(s)->clusters > |
MSDOS_SB | 214 | fs/msdos/inode.c | error = !MSDOS_SB(s)->fats || (MSDOS_SB(s)->dir_entries & |
MSDOS_SB | 215 | fs/msdos/inode.c | (MSDOS_DPS-1)) || MSDOS_SB(s)->clusters+2 > MSDOS_SB(s)-> |
MSDOS_SB | 216 | fs/msdos/inode.c | fat_length*SECTOR_SIZE*8/MSDOS_SB(s)->fat_bits || |
MSDOS_SB | 223 | fs/msdos/inode.c | "uid=%d,gid=%d,umask=%03o%s]\n",MSDOS_SB(s)->fat_bits,check, |
MSDOS_SB | 224 | fs/msdos/inode.c | conversion,uid,gid,umask,MSDOS_CAN_BMAP(MSDOS_SB(s)) ? |
MSDOS_SB | 227 | fs/msdos/inode.c | "se=%d,ts=%ld,ls=%d]\n",b->media,MSDOS_SB(s)->cluster_size, |
MSDOS_SB | 228 | fs/msdos/inode.c | MSDOS_SB(s)->fats,MSDOS_SB(s)->fat_start,MSDOS_SB(s)-> |
MSDOS_SB | 229 | fs/msdos/inode.c | fat_length,MSDOS_SB(s)->dir_start,MSDOS_SB(s)->dir_entries, |
MSDOS_SB | 230 | fs/msdos/inode.c | MSDOS_SB(s)->data_start,CF_LE_W(*(unsigned short *) &b-> |
MSDOS_SB | 241 | fs/msdos/inode.c | MSDOS_SB(s)->name_check = check; |
MSDOS_SB | 242 | fs/msdos/inode.c | MSDOS_SB(s)->conversion = conversion; |
MSDOS_SB | 245 | fs/msdos/inode.c | MSDOS_SB(s)->fs_uid = uid; |
MSDOS_SB | 246 | fs/msdos/inode.c | MSDOS_SB(s)->fs_gid = gid; |
MSDOS_SB | 247 | fs/msdos/inode.c | MSDOS_SB(s)->fs_umask = umask; |
MSDOS_SB | 248 | fs/msdos/inode.c | MSDOS_SB(s)->quiet = quiet; |
MSDOS_SB | 249 | fs/msdos/inode.c | MSDOS_SB(s)->free_clusters = -1; /* don't know yet */ |
MSDOS_SB | 250 | fs/msdos/inode.c | MSDOS_SB(s)->fat_wait = NULL; |
MSDOS_SB | 251 | fs/msdos/inode.c | MSDOS_SB(s)->fat_lock = 0; |
MSDOS_SB | 252 | fs/msdos/inode.c | MSDOS_SB(s)->prev_free = 0; |
MSDOS_SB | 267 | fs/msdos/inode.c | put_fs_long(MSDOS_SB(sb)->cluster_size*SECTOR_SIZE,&buf->f_bsize); |
MSDOS_SB | 268 | fs/msdos/inode.c | put_fs_long(MSDOS_SB(sb)->clusters,&buf->f_blocks); |
MSDOS_SB | 270 | fs/msdos/inode.c | if (MSDOS_SB(sb)->free_clusters != -1) |
MSDOS_SB | 271 | fs/msdos/inode.c | free = MSDOS_SB(sb)->free_clusters; |
MSDOS_SB | 274 | fs/msdos/inode.c | for (nr = 2; nr < MSDOS_SB(sb)->clusters+2; nr++) |
MSDOS_SB | 276 | fs/msdos/inode.c | MSDOS_SB(sb)->free_clusters = free; |
MSDOS_SB | 292 | fs/msdos/inode.c | sb = MSDOS_SB(inode->i_sb); |
MSDOS_SB | 315 | fs/msdos/inode.c | inode->i_uid = MSDOS_SB(inode->i_sb)->fs_uid; |
MSDOS_SB | 316 | fs/msdos/inode.c | inode->i_gid = MSDOS_SB(inode->i_sb)->fs_gid; |
MSDOS_SB | 318 | fs/msdos/inode.c | inode->i_mode = (S_IRWXUGO & ~MSDOS_SB(inode->i_sb)->fs_umask) | |
MSDOS_SB | 323 | fs/msdos/inode.c | inode->i_size = MSDOS_SB(inode->i_sb)->dir_entries* |
MSDOS_SB | 325 | fs/msdos/inode.c | inode->i_blksize = MSDOS_SB(inode->i_sb)->cluster_size* |
MSDOS_SB | 328 | fs/msdos/inode.c | inode->i_blksize*MSDOS_SB(inode->i_sb)->cluster_size; |
MSDOS_SB | 343 | fs/msdos/inode.c | ~MSDOS_SB(inode->i_sb)->fs_umask) | S_IFDIR; |
MSDOS_SB | 357 | fs/msdos/inode.c | inode->i_size += SECTOR_SIZE*MSDOS_SB(inode-> |
MSDOS_SB | 368 | fs/msdos/inode.c | ? S_IRUGO|S_IWUGO : S_IRWXUGO) & ~MSDOS_SB(inode->i_sb)->fs_umask) | |
MSDOS_SB | 370 | fs/msdos/inode.c | inode->i_op = MSDOS_CAN_BMAP(MSDOS_SB(inode->i_sb)) ? |
MSDOS_SB | 377 | fs/msdos/inode.c | MSDOS_I(inode)->i_binary = is_binary(MSDOS_SB(inode->i_sb)->conversion, |
MSDOS_SB | 381 | fs/msdos/inode.c | inode->i_blksize = MSDOS_SB(inode->i_sb)->cluster_size*SECTOR_SIZE; |
MSDOS_SB | 383 | fs/msdos/inode.c | inode->i_blksize*MSDOS_SB(inode->i_sb)->cluster_size; |
MSDOS_SB | 428 | fs/msdos/inode.c | if ((flags & NOTIFY_UIDGID) && (inode->i_uid != MSDOS_SB(inode->i_sb)-> |
MSDOS_SB | 429 | fs/msdos/inode.c | fs_uid || inode->i_gid != MSDOS_SB(inode->i_sb)->fs_gid)) { |
MSDOS_SB | 430 | fs/msdos/inode.c | inode->i_uid = MSDOS_SB(inode->i_sb)->fs_uid; |
MSDOS_SB | 431 | fs/msdos/inode.c | inode->i_gid = MSDOS_SB(inode->i_sb)->fs_gid; |
MSDOS_SB | 435 | fs/msdos/inode.c | return MSDOS_SB(inode->i_sb)->quiet ? 0 : error; |
MSDOS_SB | 444 | fs/msdos/inode.c | & ~MSDOS_SB(inode->i_sb)->fs_umask) | S_IRUSR) >> 6)*S_IXUGO)) & |
MSDOS_SB | 445 | fs/msdos/inode.c | ~MSDOS_SB(inode->i_sb)->fs_umask; |
MSDOS_SB | 446 | fs/msdos/inode.c | return MSDOS_SB(inode->i_sb)->quiet ? 0 : error; |
MSDOS_SB | 92 | fs/msdos/misc.c | while (MSDOS_SB(sb)->fat_lock) sleep_on(&MSDOS_SB(sb)->fat_wait); |
MSDOS_SB | 93 | fs/msdos/misc.c | MSDOS_SB(sb)->fat_lock = 1; |
MSDOS_SB | 99 | fs/msdos/misc.c | MSDOS_SB(sb)->fat_lock = 0; |
MSDOS_SB | 100 | fs/msdos/misc.c | wake_up(&MSDOS_SB(sb)->fat_wait); |
MSDOS_SB | 116 | fs/msdos/misc.c | if (!MSDOS_SB(inode->i_sb)->free_clusters) return -ENOSPC; |
MSDOS_SB | 118 | fs/msdos/misc.c | limit = MSDOS_SB(inode->i_sb)->clusters; |
MSDOS_SB | 121 | fs/msdos/misc.c | nr = ((count+MSDOS_SB(inode->i_sb)->prev_free) % limit)+2; |
MSDOS_SB | 127 | fs/msdos/misc.c | MSDOS_SB(inode->i_sb)->prev_free = (count+MSDOS_SB(inode->i_sb)-> |
MSDOS_SB | 130 | fs/msdos/misc.c | MSDOS_SB(inode->i_sb)->free_clusters = 0; |
MSDOS_SB | 134 | fs/msdos/misc.c | fat_access(inode->i_sb,nr,MSDOS_SB(inode->i_sb)->fat_bits == 12 ? |
MSDOS_SB | 136 | fs/msdos/misc.c | if (MSDOS_SB(inode->i_sb)->free_clusters != -1) |
MSDOS_SB | 137 | fs/msdos/misc.c | MSDOS_SB(inode->i_sb)->free_clusters--; |
MSDOS_SB | 163 | fs/msdos/misc.c | for (current = 0; current < MSDOS_SB(inode->i_sb)->cluster_size; |
MSDOS_SB | 165 | fs/msdos/misc.c | sector = MSDOS_SB(inode->i_sb)->data_start+(nr-2)* |
MSDOS_SB | 166 | fs/msdos/misc.c | MSDOS_SB(inode->i_sb)->cluster_size+current; |
MSDOS_SB | 170 | fs/msdos/misc.c | if (current < MSDOS_SB(inode->i_sb)->cluster_size-1 && |
MSDOS_SB | 192 | fs/msdos/misc.c | inode->i_blocks += MSDOS_SB(inode->i_sb)->cluster_size; |
MSDOS_SB | 199 | fs/msdos/misc.c | inode->i_size += SECTOR_SIZE*MSDOS_SB(inode->i_sb)-> |
MSDOS_SB | 391 | fs/msdos/misc.c | for (count = 0; count < MSDOS_SB(sb)->dir_entries/MSDOS_DPS; count++) { |
MSDOS_SB | 392 | fs/msdos/misc.c | if ((cluster = raw_scan_sector(sb,MSDOS_SB(sb)->dir_start+count, |
MSDOS_SB | 414 | fs/msdos/misc.c | for (count = 0; count < MSDOS_SB(sb)->cluster_size; count++) { |
MSDOS_SB | 416 | fs/msdos/misc.c | MSDOS_SB(sb)->cluster_size+MSDOS_SB(sb)->data_start+ |
MSDOS_SB | 99 | fs/msdos/namei.c | if ((res = msdos_format_name(MSDOS_SB(dir->i_sb)->name_check,name,len, |
MSDOS_SB | 205 | fs/msdos/namei.c | if ((res = msdos_format_name(MSDOS_SB(dir->i_sb)->name_check,name,len, |
MSDOS_SB | 252 | fs/msdos/namei.c | if ((res = msdos_format_name(MSDOS_SB(dir->i_sb)->name_check,name,len, |
MSDOS_SB | 438 | fs/msdos/namei.c | if (MSDOS_SB(old_dir->i_sb)->conversion == 'a') /* update binary info */ |
MSDOS_SB | 574 | fs/msdos/namei.c | if ((error = msdos_format_name(MSDOS_SB(old_dir->i_sb)->name_check, |
MSDOS_SB | 576 | fs/msdos/namei.c | if ((error = msdos_format_name(MSDOS_SB(new_dir->i_sb)->name_check, |