tag | line | file | source code |
MSDOS_SB | 26 | fs/fat/cache.c | if ((unsigned) (nr-2) >= MSDOS_SB(sb)->clusters) return 0; |
MSDOS_SB | 27 | fs/fat/cache.c | if (MSDOS_SB(sb)->fat_bits == 16) first = last = nr*2; |
MSDOS_SB | 32 | fs/fat/cache.c | if (!(bh = bread(sb->s_dev,MSDOS_SB(sb)->fat_start+(first >> |
MSDOS_SB | 40 | fs/fat/cache.c | if (!(bh2 = bread(sb->s_dev,MSDOS_SB(sb)->fat_start+(last |
MSDOS_SB | 47 | fs/fat/cache.c | if (MSDOS_SB(sb)->fat_bits == 16) { |
MSDOS_SB | 62 | fs/fat/cache.c | if (MSDOS_SB(sb)->fat_bits == 16) |
MSDOS_SB | 77 | fs/fat/cache.c | for (copy = 1; copy < MSDOS_SB(sb)->fats; copy++) { |
MSDOS_SB | 78 | fs/fat/cache.c | if (!(c_bh = bread(sb->s_dev,MSDOS_SB(sb)-> |
MSDOS_SB | 79 | fs/fat/cache.c | fat_start+(first >> SECTOR_BITS)+MSDOS_SB(sb)-> |
MSDOS_SB | 85 | fs/fat/cache.c | MSDOS_SB(sb)->fat_start+(first >> |
MSDOS_SB | 86 | fs/fat/cache.c | SECTOR_BITS)+MSDOS_SB(sb)->fat_length*copy |
MSDOS_SB | 247 | fs/fat/cache.c | sb = MSDOS_SB(inode->i_sb); |
MSDOS_SB | 278 | fs/fat/cache.c | fat_access(inode->i_sb,last,MSDOS_SB(inode->i_sb)->fat_bits == |
MSDOS_SB | 290 | fs/fat/cache.c | if (MSDOS_SB(inode->i_sb)->free_clusters != -1) |
MSDOS_SB | 291 | fs/fat/cache.c | MSDOS_SB(inode->i_sb)->free_clusters++; |
MSDOS_SB | 292 | fs/fat/cache.c | inode->i_blocks -= MSDOS_SB(inode->i_sb)->cluster_size; |
MSDOS_SB | 92 | fs/fat/dir.c | if (!MSDOS_SB(sb)->vfat && |
MSDOS_SB | 93 | fs/fat/dir.c | !MSDOS_SB(sb)->umsdos && /* umsdos is safe for us */ |
MSDOS_SB | 96 | fs/fat/dir.c | !MSDOS_SB(sb)->quiet) { |
MSDOS_SB | 102 | fs/fat/dir.c | if (MSDOS_SB(sb)->vfat && (de->name[0] == (__s8) DELETED_FLAG)) { |
MSDOS_SB | 105 | fs/fat/dir.c | } else if (MSDOS_SB(sb)->vfat && de->attr == ATTR_EXT) { |
MSDOS_SB | 212 | fs/fat/dir.c | if ((de->attr & ATTR_HIDDEN) && MSDOS_SB(sb)->dotsOK) { |
MSDOS_SB | 373 | fs/fat/file.c | cluster = SECTOR_SIZE*MSDOS_SB(inode->i_sb)->cluster_size; |
MSDOS_SB | 235 | fs/fat/inode.c | MSDOS_SB(sb)->cluster_size = b->cluster_size*sector_mult; |
MSDOS_SB | 236 | fs/fat/inode.c | MSDOS_SB(sb)->fats = b->fats; |
MSDOS_SB | 237 | fs/fat/inode.c | MSDOS_SB(sb)->fat_start = CF_LE_W(b->reserved)*sector_mult; |
MSDOS_SB | 238 | fs/fat/inode.c | MSDOS_SB(sb)->fat_length = CF_LE_W(b->fat_length)*sector_mult; |
MSDOS_SB | 239 | fs/fat/inode.c | MSDOS_SB(sb)->dir_start = (CF_LE_W(b->reserved)+b->fats*CF_LE_W( |
MSDOS_SB | 241 | fs/fat/inode.c | MSDOS_SB(sb)->dir_entries = CF_LE_W(*((unsigned short *) &b->dir_entries |
MSDOS_SB | 243 | fs/fat/inode.c | MSDOS_SB(sb)->data_start = MSDOS_SB(sb)->dir_start+ROUND_TO_MULTIPLE(( |
MSDOS_SB | 244 | fs/fat/inode.c | MSDOS_SB(sb)->dir_entries << MSDOS_DIR_BITS) >> SECTOR_BITS, |
MSDOS_SB | 248 | fs/fat/inode.c | CF_LE_L(b->total_sect))*sector_mult-MSDOS_SB(sb)->data_start; |
MSDOS_SB | 251 | fs/fat/inode.c | MSDOS_SB(sb)->clusters = b->cluster_size ? data_sectors/ |
MSDOS_SB | 253 | fs/fat/inode.c | MSDOS_SB(sb)->fat_bits = fat ? fat : MSDOS_SB(sb)->clusters > |
MSDOS_SB | 255 | fs/fat/inode.c | fat_clusters = MSDOS_SB(sb)->fat_length*SECTOR_SIZE*8/ |
MSDOS_SB | 256 | fs/fat/inode.c | MSDOS_SB(sb)->fat_bits; |
MSDOS_SB | 257 | fs/fat/inode.c | error = !MSDOS_SB(sb)->fats || (MSDOS_SB(sb)->dir_entries & |
MSDOS_SB | 258 | fs/fat/inode.c | (MSDOS_DPS-1)) || MSDOS_SB(sb)->clusters+2 > fat_clusters+ |
MSDOS_SB | 275 | fs/fat/inode.c | "uid=%d,gid=%d,umask=%03o%s]\n",MSDOS_SB(sb)->fat_bits,check, |
MSDOS_SB | 276 | fs/fat/inode.c | conversion,uid,gid,umask,MSDOS_CAN_BMAP(MSDOS_SB(sb)) ? |
MSDOS_SB | 279 | fs/fat/inode.c | "se=%d,ts=%ld,ls=%d]\n",b->media,MSDOS_SB(sb)->cluster_size, |
MSDOS_SB | 280 | fs/fat/inode.c | MSDOS_SB(sb)->fats,MSDOS_SB(sb)->fat_start,MSDOS_SB(sb)-> |
MSDOS_SB | 281 | fs/fat/inode.c | fat_length,MSDOS_SB(sb)->dir_start,MSDOS_SB(sb)->dir_entries, |
MSDOS_SB | 282 | fs/fat/inode.c | MSDOS_SB(sb)->data_start,CF_LE_W(*(unsigned short *) &b-> |
MSDOS_SB | 286 | fs/fat/inode.c | if (MSDOS_SB(sb)->clusters+2 > fat_clusters) |
MSDOS_SB | 287 | fs/fat/inode.c | MSDOS_SB(sb)->clusters = fat_clusters-2; |
MSDOS_SB | 297 | fs/fat/inode.c | MSDOS_SB(sb)->name_check = check; |
MSDOS_SB | 298 | fs/fat/inode.c | MSDOS_SB(sb)->conversion = conversion; |
MSDOS_SB | 300 | fs/fat/inode.c | MSDOS_SB(sb)->fs_uid = uid; |
MSDOS_SB | 301 | fs/fat/inode.c | MSDOS_SB(sb)->fs_gid = gid; |
MSDOS_SB | 302 | fs/fat/inode.c | MSDOS_SB(sb)->fs_umask = umask; |
MSDOS_SB | 303 | fs/fat/inode.c | MSDOS_SB(sb)->quiet = quiet; |
MSDOS_SB | 304 | fs/fat/inode.c | MSDOS_SB(sb)->dotsOK = dotsOK; |
MSDOS_SB | 305 | fs/fat/inode.c | MSDOS_SB(sb)->showexec = showexec; |
MSDOS_SB | 306 | fs/fat/inode.c | MSDOS_SB(sb)->sys_immutable = sys_immutable; |
MSDOS_SB | 307 | fs/fat/inode.c | MSDOS_SB(sb)->vfat = 0; /* vfat_read_super sets this */ |
MSDOS_SB | 308 | fs/fat/inode.c | MSDOS_SB(sb)->umsdos = 0; /* umsdos_read_super will set this */ |
MSDOS_SB | 309 | fs/fat/inode.c | MSDOS_SB(sb)->free_clusters = -1; /* don't know yet */ |
MSDOS_SB | 310 | fs/fat/inode.c | MSDOS_SB(sb)->fat_wait = NULL; |
MSDOS_SB | 311 | fs/fat/inode.c | MSDOS_SB(sb)->fat_lock = 0; |
MSDOS_SB | 312 | fs/fat/inode.c | MSDOS_SB(sb)->prev_free = 0; |
MSDOS_SB | 329 | fs/fat/inode.c | if (MSDOS_SB(sb)->free_clusters != -1) |
MSDOS_SB | 330 | fs/fat/inode.c | free = MSDOS_SB(sb)->free_clusters; |
MSDOS_SB | 333 | fs/fat/inode.c | for (nr = 2; nr < MSDOS_SB(sb)->clusters+2; nr++) |
MSDOS_SB | 335 | fs/fat/inode.c | MSDOS_SB(sb)->free_clusters = free; |
MSDOS_SB | 339 | fs/fat/inode.c | tmp.f_bsize = MSDOS_SB(sb)->cluster_size*SECTOR_SIZE; |
MSDOS_SB | 340 | fs/fat/inode.c | tmp.f_blocks = MSDOS_SB(sb)->clusters; |
MSDOS_SB | 355 | fs/fat/inode.c | sb = MSDOS_SB(inode->i_sb); |
MSDOS_SB | 386 | fs/fat/inode.c | inode->i_uid = MSDOS_SB(inode->i_sb)->fs_uid; |
MSDOS_SB | 387 | fs/fat/inode.c | inode->i_gid = MSDOS_SB(inode->i_sb)->fs_gid; |
MSDOS_SB | 389 | fs/fat/inode.c | inode->i_mode = (S_IRWXUGO & ~MSDOS_SB(inode->i_sb)->fs_umask) | |
MSDOS_SB | 394 | fs/fat/inode.c | inode->i_size = MSDOS_SB(inode->i_sb)->dir_entries* |
MSDOS_SB | 396 | fs/fat/inode.c | inode->i_blksize = MSDOS_SB(inode->i_sb)->cluster_size* |
MSDOS_SB | 399 | fs/fat/inode.c | inode->i_blksize*MSDOS_SB(inode->i_sb)->cluster_size; |
MSDOS_SB | 415 | fs/fat/inode.c | ~MSDOS_SB(inode->i_sb)->fs_umask) | S_IFDIR; |
MSDOS_SB | 430 | fs/fat/inode.c | inode->i_size += SECTOR_SIZE*MSDOS_SB(inode-> |
MSDOS_SB | 440 | fs/fat/inode.c | ((IS_NOEXEC(inode) || (MSDOS_SB(inode->i_sb)->showexec && |
MSDOS_SB | 443 | fs/fat/inode.c | & ~MSDOS_SB(inode->i_sb)->fs_umask) | S_IFREG; |
MSDOS_SB | 452 | fs/fat/inode.c | if (MSDOS_SB(inode->i_sb)->sys_immutable) |
MSDOS_SB | 454 | fs/fat/inode.c | MSDOS_I(inode)->i_binary = is_binary(MSDOS_SB(inode->i_sb)->conversion, |
MSDOS_SB | 458 | fs/fat/inode.c | inode->i_blksize = MSDOS_SB(inode->i_sb)->cluster_size*SECTOR_SIZE; |
MSDOS_SB | 460 | fs/fat/inode.c | inode->i_blksize*MSDOS_SB(inode->i_sb)->cluster_size; |
MSDOS_SB | 464 | fs/fat/inode.c | MSDOS_SB(inode->i_sb)->vfat |
MSDOS_SB | 501 | fs/fat/inode.c | if (MSDOS_SB(sb)->vfat) { |
MSDOS_SB | 520 | fs/fat/inode.c | (attr->ia_uid != MSDOS_SB(inode->i_sb)->fs_uid)) || |
MSDOS_SB | 522 | fs/fat/inode.c | (attr->ia_gid != MSDOS_SB(inode->i_sb)->fs_gid)) || |
MSDOS_SB | 528 | fs/fat/inode.c | return MSDOS_SB(inode->i_sb)->quiet ? 0 : error; |
MSDOS_SB | 538 | fs/fat/inode.c | & ~MSDOS_SB(inode->i_sb)->fs_umask) | S_IRUSR) >> 6)*S_IXUGO)) & |
MSDOS_SB | 539 | fs/fat/inode.c | ~MSDOS_SB(inode->i_sb)->fs_umask; |
MSDOS_SB | 99 | fs/fat/misc.c | while (MSDOS_SB(sb)->fat_lock) sleep_on(&MSDOS_SB(sb)->fat_wait); |
MSDOS_SB | 100 | fs/fat/misc.c | MSDOS_SB(sb)->fat_lock = 1; |
MSDOS_SB | 106 | fs/fat/misc.c | MSDOS_SB(sb)->fat_lock = 0; |
MSDOS_SB | 107 | fs/fat/misc.c | wake_up(&MSDOS_SB(sb)->fat_wait); |
MSDOS_SB | 121 | fs/fat/misc.c | int cluster_size = MSDOS_SB(inode->i_sb)->cluster_size; |
MSDOS_SB | 124 | fs/fat/misc.c | if (!MSDOS_SB(inode->i_sb)->free_clusters) return -ENOSPC; |
MSDOS_SB | 126 | fs/fat/misc.c | limit = MSDOS_SB(inode->i_sb)->clusters; |
MSDOS_SB | 129 | fs/fat/misc.c | nr = ((count+MSDOS_SB(inode->i_sb)->prev_free) % limit)+2; |
MSDOS_SB | 136 | fs/fat/misc.c | MSDOS_SB(inode->i_sb)->prev_free = (count+MSDOS_SB(inode->i_sb)-> |
MSDOS_SB | 139 | fs/fat/misc.c | MSDOS_SB(inode->i_sb)->free_clusters = 0; |
MSDOS_SB | 143 | fs/fat/misc.c | fat_access(inode->i_sb,nr,MSDOS_SB(inode->i_sb)->fat_bits == 12 ? |
MSDOS_SB | 145 | fs/fat/misc.c | if (MSDOS_SB(inode->i_sb)->free_clusters != -1) |
MSDOS_SB | 146 | fs/fat/misc.c | MSDOS_SB(inode->i_sb)->free_clusters--; |
MSDOS_SB | 188 | fs/fat/misc.c | sector = MSDOS_SB(inode->i_sb)->data_start+(nr-2)*cluster_size; |
MSDOS_SB | 419 | fs/fat/misc.c | for (count = 0; count < MSDOS_SB(sb)->dir_entries/MSDOS_DPS; count++) { |
MSDOS_SB | 420 | fs/fat/misc.c | if ((cluster = raw_scan_sector(sb,MSDOS_SB(sb)->dir_start+count, |
MSDOS_SB | 442 | fs/fat/misc.c | for (count = 0; count < MSDOS_SB(sb)->cluster_size; count++) { |
MSDOS_SB | 444 | fs/fat/misc.c | MSDOS_SB(sb)->cluster_size+MSDOS_SB(sb)->data_start+ |
MSDOS_SB | 157 | fs/msdos/namei.c | dotsOK = MSDOS_SB(dir->i_sb)->dotsOK; |
MSDOS_SB | 158 | fs/msdos/namei.c | res = msdos_format_name(MSDOS_SB(dir->i_sb)->name_check, |
MSDOS_SB | 296 | fs/msdos/namei.c | if ((res = msdos_format_name(MSDOS_SB(dir->i_sb)->name_check,name,len, |
MSDOS_SB | 297 | fs/msdos/namei.c | msdos_name,0,MSDOS_SB(dir->i_sb)->dotsOK)) < 0) { |
MSDOS_SB | 420 | fs/msdos/namei.c | if ((res = msdos_format_name(MSDOS_SB(dir->i_sb)->name_check,name,len, |
MSDOS_SB | 421 | fs/msdos/namei.c | msdos_name,0,MSDOS_SB(dir->i_sb)->dotsOK)) < 0) { |
MSDOS_SB | 728 | fs/msdos/namei.c | if ((error = msdos_format_name(MSDOS_SB(old_dir->i_sb)->name_check, |
MSDOS_SB | 729 | fs/msdos/namei.c | old_name,old_len,old_msdos_name,1,MSDOS_SB(old_dir->i_sb)->dotsOK)) |
MSDOS_SB | 731 | fs/msdos/namei.c | if ((error = msdos_format_name(MSDOS_SB(new_dir->i_sb)->name_check, |
MSDOS_SB | 732 | fs/msdos/namei.c | new_name,new_len,new_msdos_name,0,MSDOS_SB(new_dir->i_sb)->dotsOK)) |
MSDOS_SB | 407 | fs/umsdos/inode.c | MSDOS_SB(sb)->dotsOK = 0; /* disable hidden==dotfile */ |
MSDOS_SB | 408 | fs/umsdos/inode.c | MSDOS_SB(sb)->umsdos = 1; /* Tell fat-support we're umsdos */ |
MSDOS_SB | 64 | fs/vfat/namei.c | MSDOS_SB(sb)->vfat = 1; |
MSDOS_SB | 65 | fs/vfat/namei.c | MSDOS_SB(sb)->dotsOK = 0; |